<div id="login-top"></div>
<div id="login-content" class="common-w1008">
    <div id="login-adver"></div>
    <?php
    $form = $this->beginWidget('CActiveForm', array('enableAjaxValidation' => false, 'enableClientValidation' => false,
        'clientOptions' => array('afterValidateAttribute' => 'js:function(form, attribute, data, hasError){if(hasError){$("#captche").click();}}'),
        'htmlOptions' => array('role' => 'form', 'id' => 'login-form')));
    ?>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->textField($model, 'username', array('placeholder' => $model->getAttributeLabel('username'), 'autocomplete' => 'off', 'class' => 'form-control', 'id' => 'inputText3')); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'username', array('class' => 'error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->passwordField($model, 'pass', array('placeholder' => $model->getAttributeLabel('pass'), 'autocomplete' => 'off', 'id' => 'inputPassword3', 'class' => 'form-control', 'type' => 'password')); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'pass', array('class' => 'error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->passwordField($model, 'confirm', array('placeholder' => $model->getAttributeLabel('confirm'), 'autocomplete' => 'off', 'id' => 'inputPassword3', 'class' => 'form-control', 'type' => 'password')); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'confirm', array('class' => 'error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->textField($model, 'email', array('placeholder' => $model->getAttributeLabel('email'), 'autocomplete' => 'off', 'id' => 'inputPassword3', 'class' => 'form-control')); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'email', array('class' => 'error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->textField($model, 'mobile', array('placeholder' => $model->getAttributeLabel('mobile'), 'autocomplete' => 'off', 'id' => 'inputPassword3', 'class' => 'form-control')); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'mobile', array('class' => 'error')); ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-1">
            <?php echo $form->textField($model, 'verifyCode', array('size' => 20, 'maxlength' => 5, 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('verifyCode'))); ?>
        </div>
        <div class="col-2">
            <?php $this->widget('CCaptcha', array('showRefreshButton' => false, 'clickableImage' => true, 'imageOptions' => array('class' => 'span2 input', 'alt' => '换一个', 'title' => '换一个', 'style' => 'cursor:pointer'))); ?>
        </div>
        <div class="col-2">
            <?php echo $form->error($model, 'verifyCode', array('class' => 'promptMessage error')); ?>
        </div>
    </div>
    <div class="form-group m-0">
        <div class="col-1">
            <button type="submit" class="form-control">
                注册
                <i class="min-right carousel pull-right"></i>
            </button>
        </div>
    </div>
    <?php $this->endWidget(); ?>
</div>
